<link href="/assets/css/admin.css" rel="stylesheet" type="text/css"/>
<link href="/assets/css/dialog.css" rel="stylesheet" type="text/css" />

<form action="/admin.php?a=add&m=class" method="post" name="myform" id="myform" enctype="multipart/form-data" style="margin-top:10px;">
  <div class="pad-10">
    <div class="col-tab">
      <ul class="tabBut cu-li">
        <li id="tab_setting_1" class="on" onclick="SwapTab('setting','on','',3,1);">添加分类</li>
      </ul>
      <div id="div_setting_1" class="contentList pad-10">
        <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
          <tbody>
            <tr>
              <th></th>
              <td></td>
            </tr>
            <tr>
              <th>上级分类：</th>
              <td><select name="p_id" style="width:150px;">
                  <option value="0" selected="selected">--顶级分类--</option>
                <{foreach from=$class item=item}>
                 <option ><{$item.className}></option>
                <{/foreach}>
                </select>
             </td>
            </tr>
            <tr>
              <th width="100">分类名称 :</th>
              <td><input type="text" name="className" id="name" rel="title_color" class="input-text iColorPicker" size="60" value="" style="color:;">
                
                <input type="hidden" value="" name="color" id="title_color"></td>
            </tr>
            <tr>
              <th width="100">排序值 :</th>
              <td><input type="text" name="sort" id="ordid" class="input-text" size="4" value="0" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"></td>
            </tr>
            <tr>
              <th>首页显示 :</th>
              <td><input type="radio" name="is_hots" id="is_hots" class="radio_style" value="1" checked="checked">
                &nbsp;是&nbsp;&nbsp;&nbsp;
                <input type="radio" name="is_hots" id="is_hots" class="radio_style" value="0">
                &nbsp;否 </td>
            </tr>
            <tr>
              <th>审核状态 :</th>
              <td><input type="radio" name="status" id="status" class="radio_style" value="1" checked="checked">
                &nbsp;是&nbsp;&nbsp;&nbsp;
                <input type="radio" name="status" id="status" class="radio_style" value="0">
                &nbsp;否 </td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="bk15"></div>
      <div class="btn">
        <input type="submit" value="提交" name="dosubmit" class="button" id="dosubmit">
      </div>
    </div>
  </div>
</form>
